package edu.uci.ics.jung.visualization;

import java.awt.geom.Point2D;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

import edu.uci.ics.jung.graph.ArchetypeVertex;

public class StaticVertexLocationDecorator implements VertexLocationFunction
{
	Map v_locations = new HashMap();
	
	
    public Point2D getLocation(ArchetypeVertex v)
    {
        Point2D location = (Point2D)v_locations.get(v);
        if (location == null)
        {
            
        	location = new Point2D.Double(11 ,11);
            v_locations.put(v, location);
        }
        return location;
    }
    
    public Iterator getVertexIterator()
    {
        return v_locations.keySet().iterator();
    }

}
